add NULL checks in code added by 24492:6c104b46ef89
authorJan Beulich <jbeulich@suse.com>
Thu, 19 Jan 2012 09:08:12 +0000 (10:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 19 Jan 2012 09:08:12 +0000 (10:08 +0100)
commita6ec974704c7ed6a48ca75957655a79cb9a55a7f
tree179e56121d57bbb46ebf546e9a623bad1df49a02
parent09923b729603e1f8866a70cee60d665d063d48b4
add NULL checks in code added by 24492:6c104b46ef89

Also a couple of missing is_hvm_domain() checks.

Further properly pass the PCI segment in a call to pci_get_pdev().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/iommu_guest.c
xen/drivers/passthrough/amd/iommu_init.c